actiontable=actiontable or {}

function action(actors,command,targets,...)
  local i,a,t
  for i,a in ipairs(actors) do
    for i,t in ipairs(targets) do
      a:handle(actiontable[command],t,...)
    end
  end
end
